#include "excep.h"
#include "uart.h"

void IrqService(void)
{


        puts("Enter irq\n");
       /* send_hex(SRCPND);
        putch('\n');
        send_hex(SRCPND>>8);
        putch('\n');
        send_hex(SRCPND>>16);
        putch('\n');

        send_hex(INTOFFSET>>8);
        putch('\n');
        send_hex(INTOFFSET>>16);
        putch('\n');
        send_hex(INTOFFSET>>24);
        putch('\n');
        */
        INTMOD |= (1 << 10);
        INTMSK |= (1 << 10);
        SRCPND |= (1 << 10);
        INTPND |= (1 << 10);
        INTMOD |= (1 << 10);
        INTMSK |= (1 << 10);
        //TCON &= ~(1 << 0);

}

void UndefHandle(void)
{
        while(1)
    {
        puts("Enter UndefHandle\n");
    }
}

void PreAbtHandle(void)
{
    while(1)
    {
        puts("Enter PreAbtHandle\n");
    }
}

void DataAbtHandle(void)
{
    while(1)
    {
        puts("Enter DataAbtHandle\n");
    }
}

void FiqHandle(void)
{
    while(1)
    {
        puts("Enter FiqHanlde\n");
    }
}